% get threshold parameters for grids
function cells = get_cellsize(country)
    if strcmp(country, 'Mexico') || ...
            strcmp(country, 'Brazil') || strcmp(country, 'Colombia') || strcmp(country, 'Chile')
        cells = 1;
    elseif  strcmp(country, 'Costa Rica')
        cells = 0.25;
    elseif strcmp(country, 'Peru') || strcmp(country, 'Argentina') || strcmp(country, 'Guatemala')
        cells = 1;
    else
        cells = 0.5;
    end
    
